package com.jic.interaction.ChinaPost.controller;


import com.jic.interaction.ChinaPost.model.vo.request.NotificationCallbackRequest;
import com.jic.interaction.ChinaPost.model.vo.response.NotificationCallbackResponse;
import com.jic.interaction.ChinaPost.service.NotificationCallbackService;
import com.jic.rest.RestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SuppressWarnings("通知回调")
@RequestMapping("/notification/")
public class NotificationCallbackController {

    @Autowired
    NotificationCallbackService service;

    public RestResult<NotificationCallbackResponse> toSelect(@RequestBody NotificationCallbackRequest request) {
        NotificationCallbackResponse response = service.selectPaymnt(request);
        return RestResult.success(response);
    }

}
